<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ManualFrageCreateDlg" widgetVar="ManualFrageCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateManualFrageTitle}">

            <h:form id="ManualFrageCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{manualFrageController.selected != null}">

                        <!--
                        <h:outputLabel value="#{bundle.CreateManualFrageLabel_id}" for="id" />
                        <p:inputText id="id" value="#{manualFrageController.selected.id}" title="#{bundle.CreateManualFrageTitle_id}" required="true" requiredMessage="#{bundle.CreateManualFrageRequiredMessage_id}"/>
                        -->
                        
                        <h:outputLabel value="#{bundle.CreateManualFrageLabel_beschreibung}" for="beschreibung" />
                        <p:inputText id="beschreibung" value="#{manualFrageController.selected.beschreibung}" title="#{bundle.CreateManualFrageTitle_beschreibung}" required="true" requiredMessage="#{bundle.CreateManualFrageRequiredMessage_beschreibung}"/>

                        <h:outputLabel value="#{bundle.CreateManualFrageLabel_erklaerung}" for="erklaerung" />
                        <p:inputText id="erklaerung" value="#{manualFrageController.selected.erklaerung}" title="#{bundle.CreateManualFrageTitle_erklaerung}" required="true" requiredMessage="#{bundle.CreateManualFrageRequiredMessage_erklaerung}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{manualFrageController.saveNew}" value="#{bundle.Save}" update="display,:ManualFrageListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ManualFrageCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="ManualFrageCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
